﻿namespace GanFeng.Forest.WebApi.Exceptions
{
    /// <summary>
    /// 赣锋 WebApi 异常
    /// </summary>
    public class GanFengWebApiException : Exception
    {
        /// <summary>
        /// 创建一个新的赣锋 WebApi 异常
        /// </summary>
        /// <param name="code">错误码</param>
        public GanFengWebApiException(int code)
        {
            Code = code;
        }
        /// <summary>
        /// 错误码
        /// </summary>
        public int Code { get; }
    }
}
